import yaml
from baseTools.myLogger import logger

def readYaml(file):
    """
    读取yaml文件数据
    :param file:
    :return:
    """
    logger.info("读取{}文件的=内的测试数据".format(file))
    with open(file=file, encoding="utf-8") as f:
        data_value = yaml.safe_load(f)
        logger.info("文件读取成功！")
        return data_value


# value = readYaml('.\case_org_create.yaml')
# print(value)